home *** CD-ROM | disk | FTP | other *** search
- <!-- // --><script language=JavaScript>
-
- function TKM_UPDATER()
- {
- this.FreeUnusedLibraries = TU_FreeUnusedLibraries;
- this.GetXMLFileName = TU_GetXMLFileName;
- this.ApplyUpdates = TU_ApplyUpdates;
- this.GetToolVersion = TU_GetToolVersion;
- this.GetTKMFileVersion = TU_GetTKMFileVersion;
- this.IsTKMFileInUse = TU_IsTKMFileInUse;
-
- this.Init = TU_Init;
- this.clsid = '8AC0DECF-701B-11D3-8EA6-009027232FFE';
- }
-
- function TU_FreeUnusedLibraries()
- {
- if(document.layers) document.updtr.callMethod('FreeUnusedLibraries');
- else if(document.all) document.updtr.FreeUnusedLibraries();
- }
-
- function TU_GetXMLFileName(fileName, medium)
- {
- sRetVal = '';
- if(document.layers) sRetVal = new String(document.updtr.callMethod2('GetXMLFileName',fileName, medium)) + '';
- else if(document.all) sRetVal = document.updtr.GetXMLFileName(fileName, medium);
-
- if (sRetVal) return sRetVal;
- else alert("XML File Not Found");
- }
-
- function TU_ApplyUpdates(medium, compKey)
- {
- if(document.layers) document.updtr.callMethod2('ApplyUpdates', medium, compKey);
- else if(document.all) document.updtr.ApplyUpdates(medium, compKey);
- }
-
- function TU_GetToolVersion(toolKey)
- {
- if(document.layers) document.updtr.callMethod1('GetToolVersion', toolKey);
- else if(document.all) document.updtr.GetToolVersion(toolKey);
- }
-
- function TU_GetTKMFileVersion(fileName)
- {
- if(document.layers) document.updtr.callMethod1('GetTKMFileVersion', fileName);
- else if(document.all) document.updtr.GetTKMFileVersion(fileName);
- }
-
- function TU_IsTKMFileInUse(fileName)
- {
- sRetVal = '';
- if(document.layers) sRetVal = new String (document.updtr.callMethod1('IsTKMFileInUse', fileName)) + '';
- else if(document.all) sRetVal = document.updtr.IsTKMFileInUse(fileName);
-
- return sRetVal;
- }
-
- function TU_Init()
- {
- /* If the client is installed and completely up-to-date */
- if (ti.status == ti.INSTALLED || ti.status == ti.UPDATE_REQ)
- {
- if (document.layers) document.write('<embed type="application/x-weboutfitter-container" name="updtr" width="" height="" clsid="{' + this.clsid + '}">');
- else if (document.all) document.write('<object id="updtr" name="updtr" classid="clsid:' + this.clsid + '" height=0 width=0></object>');
- this.ready = true;
- }
- }
-
- var tu = new TKM_UPDATER();
- //--></script>